package hy.beans;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.apache.solr.client.solrj.beans.Field;
import org.springframework.data.annotation.Id;
import org.springframework.data.solr.core.mapping.SolrDocument;

import java.io.Serializable;

@SolrDocument(solrCoreName = "first")
@Data
@AllArgsConstructor
public class Book implements Serializable{
    @Id
    @Field
    String id;
    @Field
    String name;
    @Field
    String introduce;
    @Field
    String author;
    @Field
    Integer price;
}